// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_AREA
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstAreaTable : TableInfo
    {
		public const string C_TableName = "MST_AREA";
		
		public const string C_AREA_ID = "AREA_ID";
		public const string C_PARENT_AREA_ID = "PARENT_AREA_ID";
		public const string C_AREA_TYPE = "AREA_TYPE";
		public const string C_AREA_NAME = "AREA_NAME";
		
		public MstAreaTable()
        {
            _tableName = "MST_AREA";
        }
		
		protected static MstAreaTable _current;
        public static MstAreaTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstAreaTable();

            _current.Add(C_AREA_ID, new ColumnInfo(C_AREA_ID,"AreaId", true, typeof(string)));
            _current.Add(C_PARENT_AREA_ID, new ColumnInfo(C_PARENT_AREA_ID,"ParentAreaId", false, typeof(string)));
            _current.Add(C_AREA_TYPE, new ColumnInfo(C_AREA_TYPE,"AreaType", false, typeof(string)));
            _current.Add(C_AREA_NAME, new ColumnInfo(C_AREA_NAME,"AreaName", false, typeof(string)));
			
		}
		
		public ColumnInfo AREA_ID
        {
            get { return this[C_AREA_ID]; }
        }
		
		public ColumnInfo PARENT_AREA_ID
        {
            get { return this[C_PARENT_AREA_ID]; }
        }
		
		public ColumnInfo AREA_TYPE
        {
            get { return this[C_AREA_TYPE]; }
        }
		
		public ColumnInfo AREA_NAME
        {
            get { return this[C_AREA_NAME]; }
        }
		
		
		
	}
}

